var vm = new Vue({
    el: "#main",
    data: {
        table: {
            tableData: [],
        },
        dialog: {
            addVisible: false
        },
        ratingArr: [
            {"value": "A", "label": 'A'},
            {"value": "B", "label": 'B'},
            {"value": "C", "label": 'C'},
            {"value": "D", "label": 'D'}
        ],
        formData: {
            rating: "",
            scoreBefore: 0,
            scoreAfter: 0
        }
    },
    methods: {
        loadTableData: function () {
            var params = jsonUtil.mergeJsonObj(this.page, this.searchFormData);
            VanyAjax("/kpi/rate/query/all", params, "POST", "#table")
                .done(function (data) {
                    this.table.tableData = data
                }, true, this);
        },
        openDialog() {
            this.dialog.addVisible = true
        },
        exportExcel() {
            window.location.href = ""
        },
        submitForm:function() {

        }
    },
    mounted: function () {
        this.loadTableData();
    }
})
